package com.taotao.item.controller;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;

import freemarker.template.Configuration;
import freemarker.template.Template;

/**
 * 生成静态化freemaker页面的controller
 * @author leaf
 *
 */
@SuppressWarnings("all")
@Controller
public class GenHtmlController {

	@Autowired
	private FreeMarkerConfigurer freeMarkerConfigurer;
	
	@Value("${FTL_LOCATION}")
	private String FTL_LOCATION;
	
	@RequestMapping("/temp")
	public String genHtml() throws Exception{
		
		return "ok";
	}
}
